import { axios } from '@/utils/request'

export function selectList(parameter) {
  return axios({
    url: '/coupon/businessCoupon/selectList/' + parameter.pageNum + "/" + parameter.pageSize,
    method: 'post',
    data: parameter
  })
}

export function Delete(parameter) { //删除
  return axios({
    url: '/coupon/businessCoupon/delete/' + parameter,
    method: 'get'
  })
}


export function save(parameter) {
  return axios({
    url: '/coupon/businessCoupon/add',
    method: 'post',
    data: parameter
  })
}

//上架下架
export function updateState(parameter) {
  return axios({
    url: '/coupon/businessCoupon/updateState',
    method: 'post',
    data: parameter
  })
}


//上架下架
export function updateHType(parameter) {
  return axios({
    url: '/coupon/businessCoupon/updateHType',
    method: 'post',
    data: parameter
  })
}

export function pcPay(parameter) { //核销
  return axios({
    url: '/coupon/businessCoupon/pcPay/' + parameter,
    method: 'get'
  })
}